package com.xuelang.pipeline.artifact.app.resource;

import com.xuelang.pipeline.artifact.client.common.request.PageParam;
import com.xuelang.pipeline.artifact.client.common.result.PageRecord;
import com.xuelang.pipeline.artifact.client.resource.dto.RepositoryPackageDTO;
import com.xuelang.pipeline.artifact.client.resource.dto.RepositoryPackageQuery;

import java.util.List;

/**
 * 制品包服务接口
 *
 * @author xiwen.zxg
 * @since 2024/5/15
 */
public interface RepositoryPackageService {
    /**
     * 查询制品包列表(有过滤条件)
     *
     * @param dtoPageParam
     * @return
     */
    PageRecord<RepositoryPackageDTO> pageList(PageParam<RepositoryPackageQuery> dtoPageParam);

    /**
     * 查询制品包列表(有过滤条件)
     *
     * @param repositoryPackageQuery
     * @return
     */
    List<RepositoryPackageDTO> list(RepositoryPackageQuery repositoryPackageQuery);
    /**
     * 删除制品包
     *
     * @param packageUuid
     * @return
     */
    Boolean delete(String packageUuid);
    /**
     * 查询制品包
     *
     * @param packageUuid
     * @return
     */
    RepositoryPackageDTO query(String packageUuid);

}
